package org.nt4b.schemadoc.core;

import java.util.ArrayList;
import java.util.List;

import org.nt4b.schemadoc.core.dom.Column;
import org.nt4b.schemadoc.core.dom.Table;


public class CoreTestUtils {
    public static final String XML = "" + //
            "<schema>\n" + //
            "  <tables>\n" + //
            "    <table>\n" + //
            "      <name>firstTable</name>\n" + //
            "      <comment>firstTableComment</comment>\n" + //
            "      <columns>\n" + //
            "        <column>\n" + //
            "          <name>column1</name>\n" + //
            "          <comment>column1Comment</comment>\n" + //
            "        </column>\n" + //
            "        <column>\n" + //
            "          <name>column2</name>\n" + //
            "          <comment>column2Comment</comment>\n" + //
            "        </column>\n" + //
            "      </columns>\n" + //
            "    </table>\n" + //
            "  </tables>\n" + //
            "</schema>";
    
    public static List<Table> getTestComments() {
        final List<Table> result = new ArrayList<Table>();
        
        final Table table = new Table();
        table.setName("firstTable");
        table.setComment("firstTableComment");
        result.add(table);
        
        final Column column1 = new Column();
        column1.setName("column1");
        column1.setComment("column1Comment");
        table.getColumns().add(column1);
        
        final Column column2 = new Column();
        column2.setName("column2");
        column2.setComment("column2Comment");
        table.getColumns().add(column2);
        
        return result;
    }
    
}
